import * as types from './mutation-types'

export default {
	[types.NEXT_STEP](state, amount) {
		state.stepIndex += amount
	},
	[types.PREV_STEP](state, amount) {
		state.stepIndex -= amount
	},
	[types.UPDATE](state, amount) {
		state.stepIndex = amount
	},
	[types.CONFIRM_PASSWORD](state) {
		state.confirmPassword = !state.confirmPassword
	}
}